from app import ma


class UserSchema(ma.ModelSchema):
    class Meta:
        fields = ('id', 'username', 'password', 'status')


class MenuSchema(ma.ModelSchema):
    class Meta:
        fields = ('id', 'name', 'endpoint', 'parent_id')
